package com.bookshop.entity;

import java.io.Serializable;

/**
 * 出版社实体
 * @author yannis
 *
 */
public class Publisher implements Serializable {
 
	private static final long serialVersionUID = 8389482036068540360L;
	private int id; //主键
	private String name;//出版社名称
	//无参构造
	public Publisher() { }
	/**
	 * 带参构造
	 * @param id 主键编号
	 * @param name 出版社名称
	 */
    public Publisher(int id, String name)
    {
        this.id = id;
        this.name = name;
    }
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	 	
}
